package com.nsi.o2o.dto;

import com.nsi.o2o.entity.ProductCategory;
import com.nsi.o2o.enums.ProductCategoryEnum;

import java.util.List;

/**
 * @author: Luo Zhen
 * @date: 2018/9/17 10:39
 * @description:
 */
public class ProductCategoryExecution {

    private Integer state;

    private String stateInfo;

    private List<ProductCategory> productCategoryList;


    public ProductCategoryExecution() {

    }

    //失败
    public ProductCategoryExecution(ProductCategoryEnum ps) {
        this.state = ps.getState();
        this.stateInfo = ps.getStateInfo();
    }

    //成功
    public ProductCategoryExecution(ProductCategoryEnum ps, List<ProductCategory> productCategoryList) {
        this.state = ps.getState();
        this.stateInfo = ps.getStateInfo();
        this.productCategoryList = productCategoryList;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public List<ProductCategory> getProductCategoryList() {
        return productCategoryList;
    }

    public void setProductCategoryList(List<ProductCategory> productCategoryList) {
        this.productCategoryList = productCategoryList;
    }
}
